package com.back.common.enums;

import lombok.Getter;

@Getter
public enum PayTypeEnum {
    EMPLOYER(0, "单位"),
    JOB_SEEKER(1, "求职者");

    private final Integer value;
    private final String desc;

    PayTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (PayTypeEnum type : PayTypeEnum.values()) {
            if (type.getValue().equals(value)) {
                return type.getDesc();
            }
        }
        return "";
    }
} 